.container {
    width: 1200px;
    margin: 0 auto;
}

.active {
    border: 1px solid rgb(112, 61, 19);
}

body {

    background-color: #F6F6F6;

    // 页头
    header {
        background-color: #FFFFFF;

        .container {
            height: 160px;
            margin: 0 auto;

            .logo {
                width: 218px;
                height: 75px;
                float: left;
                margin: 50px 0 0 20px;
                // overflow: hidden;

                a {
                    display: inline-block;

                    img {
                        width: 75px;
                        height: 75px;
                        float: left;
                    }

                    .right-r {
                        color: #43200C;
                        float: left;
                        margin: 8px 0 0 15px;
                        width: 128px;
                        height: 58px;


                        h3 {
                            font-size: 28px;
                            font-weight: 600;
                            height: 40px;
                            line-height: 40px;
                        }

                        div {
                            display: inline-block;
                            font-size: 12px;
                            line-height: 17px;
                            transform: scale(.8);
                            margin-left: -14px;

                        }
                    }
                }
            }

            .search {
                float: left;
                margin: 49px 0 0 116px;

                .search-wrapper {
                    position: relative;
                    width: 530px;
                    height: 48px;
                    border: 2px solid #43240C;
                    background: url(../img/header-search.png) no-repeat center left 15px/20px 20px;
                    border-radius: 35px;

                    input {
                        position: absolute;
                        width: 347px;
                        height: 43px;
                        border: none;
                        top: 3px;
                        left: 47px;
                        outline: none;
                        font-size: 16px;
                    }

                    .saerchBtn {
                        position: absolute;
                        width: 124px;
                        height: 46px;
                        line-height: 46px;
                        background-color: #FEE44E;
                        font-size: 14px;
                        text-align: center;
                        top: 1px;
                        right: 2px;
                        border-radius: 34px;
                    }
                }
            }

            .clientPromise {
                float: left;
                margin: 41px 0 0 55px;

                ul {
                    color: #877A73;

                    li {
                        position: relative;
                        width: 44px;
                        height: 60px;
                        float: left;
                        margin-right: 24px;
                        text-align: center;

                        img {
                            width: 40px;
                            height: 40px;
                        }

                        p {
                            font-size: 12px;
                            white-space: nowrap;
                            position: absolute;
                            bottom: 0;


                        }
                    }
                }
            }
        }
    }

    // 导航-顶部
    #nav-top {
        height: 46px;
        background-color: #43240C;

        .container {
            margin: 0 auto;

            ul {
                display: flex;

                li {
                    width: 220px;
                    height: 46px;
                    font-size: 16px;
                    line-height: 46px;
                    text-align: center;
                    color: #fff;

                    &:hover {
                        background-color: #FEE44E;
                        color: #43200C;
                        cursor: pointer;

                    }
                }
            }
        }
    }

    // 商品页
    #commodity {

        .container {

            // 商品页上部分
            .aboutCmd {
                display: flex;
                justify-content: space-between;

                // 商品页上部分左边
                .cmdInfo {
                    width: 914px;
                    height: 422px;
                    background-color: #fff;
                    padding: 35px 26px;
                    display: flex;
                    position: relative;
                    box-sizing: border-box;
                    justify-content: space-between;


                    // 选项卡区域
                    .swiper-container {
                        width: 282px;
                        height: 100%;
                        box-sizing: border-box;
                        cursor: pointer;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;

                        .show-box {
                            position: relative;
                            width: 282px;
                            height: 282px;
                            overflow: hidden;


                            .mask {
                                position: absolute;
                                left: 0;
                                top: 0;
                                width: 150px;
                                height: 150px;
                                background-color: rgba(57, 71, 133, 0.4);
                                display: none;
                                pointer-events: none;
                            }

                            img {
                                width: 100%;
                                height: 100%;
                            }
                        }

                        .cmdPicSmall {
                            width: 100%;
                            display: flex;
                            justify-content: space-between;
                            box-sizing: border-box;

                            li{
                                box-sizing: border-box;
                                img {
                                    width: 60px;
                                    height: 60px;
                                }
                            }
                        }

                    }

                    .right {
                        position: absolute;
                        width: 282px;
                        height: 282px;
                        left: 380px;
                        top: 34px;
                        overflow: hidden;
                        border: 1px solid red;
                        z-index: 3;
                        display: none;

                        img{
                            position: absolute;
                            top: 0;
                            left: 0;
                        }
                    }

                    // 商品信息介绍
                    .productMsg {
                        width: 534px;
                        height: 282px;

                        // 商品标题
                        .title {
                            width: 534px;
                            height: 72px;
                            font-size: 24px;
                            color: #43240c;
                            line-height: 33px;
                            font-weight: 530;
                            margin-top: 5px;

                            .titleIcon {
                                width: 72px;
                                height: 34px;
                                display: inline-block;


                                img:nth-child(1) {
                                    width: 24px;
                                }

                                img:nth-child(2) {
                                    width: 42px;
                                    height: 24px;
                                }
                            }

                        }

                        // 商品价格和购买人数
                        .priceAndSalenum {
                            position: relative;
                            width: 530px;
                            height: 87px;
                            background-color: #F5F5F5;
                            box-sizing: border-box;
                            padding: 20px 0 18px 15px;
                            margin-top: 42px;

                            .price {
                                height: 100%;
                                display: flex;
                                flex-direction: column;

                                // 原价
                                .originalPrice {
                                    text-decoration: line-through;
                                    font-size: 16px;
                                    color: #b1a9a5;

                                }

                                // 现价
                                .presentPrice {
                                    font-size: 20px;
                                    color: #ff4653;
                                    font-weight: 550;

                                    .productPriceTag {
                                        font-size: 20px;
                                        font-weight: bold;
                                    }

                                    .productPriceStrong {
                                        font-size: 40px;
                                        font-weight: bold;
                                    }

                                    .productPriceDigit {
                                        font-size: 28px;
                                        font-weight: bold;
                                    }

                                    // 优惠券
                                    .coupon {
                                        display: inline-block;
                                        height: 16px;
                                        background: #feeeee;
                                        border-radius: 2px;
                                        border: 1px solid #fa585a;
                                        font-size: 12px;
                                        text-align: center;
                                        line-height: 17px;
                                        margin-left: 6px;
                                    }
                                }

                            }

                            // 购买数量
                            .saleNum {
                                position: absolute;
                                bottom: 12px;
                                right: 30px;
                                font-size: 16px;
                                font-weight: 400;
                                background-color: #b1a9a5;
                                width: 90px;
                                color: #fff;
                                text-align: center;
                                line-height: 22px;
                            }
                        }

                        // 商品数量
                        .num {
                            // width: 200px;
                            height: 40px;
                            display: flex;
                            margin-top: 40px;
                            margin-left: 75px;

                            .minus,
                            .add {
                                width: 24px;
                                height: 27px;
                                border: 1px solid #43240c;
                                box-sizing: border-box;
                                font-size: 22px;
                                text-align: center;
                                line-height: 24px;
                                border-radius: 3px;
                                cursor: pointer;



                            }

                            .amount {
                                width: 73px;
                                height: 27px;
                                vertical-align: middle;
                                box-sizing: border-box;
                                outline: none;
                                font-size: 18px;
                                text-align: center;
                                border: 1px solid #43240c;
                                color: #43240c;
                                border-radius: 3px;
                                line-height: 27px;
                                cursor: pointer;



                            }
                        }

                        // 购物车
                        .buyProduct {
                            width: 500px;
                            height: 80px;
                            margin-top: 20px;
                            margin-left: 20px;
                            display: flex;
                            justify-content: space-between;

                            button {
                                background-color: rgb(250, 88, 90);
                                width: 224px;
                                height: 50px;
                                border-radius: 4px;
                                font-size: 18px;
                                font-weight: 500;
                                color: #fff;
                                line-height: 25px;
                                border: none;
                                cursor: pointer;
                            }
                        }
                    }

                }

                // 店家信息
                .business {
                    box-sizing: border-box;
                    width: 275px;
                    height: 422px;
                    border: 1px solid #fee44e;
                    background-color: #fff;

                    .businessTop {
                        box-sizing: border-box;
                        width: 275px;
                        height: 63px;
                        background: linear-gradient(180deg, #fee44e, #fff 85%, #fff);
                        display: table-cell;
                        text-align: center;
                        padding-top: 10px;

                        .line {
                            display: inline-block;
                            width: 56px;
                            height: 1px;
                            opacity: .2;
                            background: #43240c;
                            vertical-align: middle;
                        }

                        .businessInfo {
                            font-size: 18px;
                            color: #43240c;
                            vertical-align: middle;
                        }
                    }

                    .businessCenter {
                        box-sizing: border-box;
                        width: 100%;
                        height: 100%;
                        padding: 23px 60px 50px 60px;

                        img {
                            width: 150px;
                            height: 150px;
                        }

                        h3 {
                            font-size: 18px;
                            color: #43240c;
                            line-height: 25px;
                            text-align: center;
                        }

                        .character {
                            font-size: 14px;
                            color: #b1a9a5;
                            line-height: 20px;
                            display: flex;
                            justify-content: space-between;
                            margin-top: 30px;

                        }

                        .score {
                            font-size: 14px;
                            color: #fb9547;
                            line-height: 20px;
                            display: flex;
                            justify-content: space-between;

                            li {
                                width: 24px;
                                height: 20px;
                                text-align: center;

                            }


                        }
                    }
                }



            }

        }
    }

    // 商品细节大图展示

    #cmdDetailsPic {
        margin-top: 10px;

        .cmdDetailsPicContainer {
            width: 1200px;
            background-color: #fff;
            margin: 0 auto;

            .cmdDetails {
                width: 790px;

                img {
                    width: 100%;
                }
            }
        }
    }
}

// 页尾
#footer {
    background-color: #494949;

    .container {
        overflow: hidden;
        color: #fff;
        height: 240px;

        .footerTop {
            display: flex;
            flex-direction: row;
            align-items: center;
            margin-top: 36px;

            .footerContent {
                display: flex;
                flex-direction: row;
                width: 480px;
                padding-left: 22px;

                img {
                    width: 112px;
                    border-radius: 18px;
                }

                .footerContentMsg {
                    box-sizing: border-box;
                    width: 180px;
                    height: 115px;
                    padding: 10px 18px;
                    text-align: center;

                    h2 {
                        font-size: 36px;
                        font-family: PingFangSC-Semibold;
                        font-weight: 600;
                        margin-bottom: 10px;
                    }

                    p {
                        font-size: 18px;
                        font-weight: 500;
                        line-height: 25px;
                    }
                }
            }

            .aboutUs {
                font-size: 20px;

                a {
                    color: #fff;
                    font-size: 20px;
                }
            }
        }

        .footerBottom {
            font-size: 18px;
            width: 750px;
            margin: 0 auto;
            text-align: center;
            margin-top: 47px;

            img {
                width: 22px;

            }

            span {
                font-size: 18px;
            }

            a {
                cursor: pointer;
                color: #fff;
                font-size: 18px;


            }

        }
    }
}

#footerLast {
    height: 90px;
    width: 100%;
    background-color: #fff;

    img {
        display: block;
        width: 83px;
        height: 30px;
        margin: 4px auto;
    }
}

// 回到顶部按钮
#backToTopBtn {
    position: fixed;
    right: 3%;
    bottom: 30%;
    display: none;

    img {
        width: 60px;
        height: 60px;
        cursor: pointer;
        border-radius: 50%;

    }

}
// 侧栏购物车和我的订单我的主页
#cartOrderMine{
    position: fixed;
    right:3%;
    top:30%;
    width: 42px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    div{
        height: 55px;
        background-color: #FEE44E;
        border-radius: 8%;
        cursor: pointer;
        .iconfont{
            font-size: 40px;
            line-height: 55px;
        }
    }
}